<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>background</title>
    <style>
        .text{
            width: 860px;
            height: 400px;
            background: url("image/daqiao.jpg") no-repeat center;
            border: 3px solid rgb(0, 255, 0);
            color: #FFF;
            font-size: 28px;
            /* background-position-x: 20px; */
            margin: 0 auto;
            
        }
        .text_1{
            width: 860px;
            height: 400px;
            color: #FFF;
            font-size: 28px;
            background: green url("image/daqiao.jpg") no-repeat left top fixed;
        }

        /* 渐变背景 */
        .text_2{
            width: 150px;
            height: 60px;
            line-height: 60px;
            background: url("image/daqiao.jpg") repeat-x;
        }
         /* banner */
         .text_3{
            background: url("image/daqiao.jpg") center;
            width: 1200px;
            height: 400px;
            margin: 0 auto;
        }
    </style>
</head>
<body>
    <div class="text">大乔，白鹤梁女神</div>
    <div class="text_1">大乔，白鹤梁女神</div>

    <div class="text_2">渐变背景</div>
</body>
</html>